package com.gage.print.pdf.util;

public class Page {
	public Page() {
		this.current = 1;
	}

	public Page(int current) {
		this.current = current;
	}

	public Page(int current, int pageSize) {
		this.current = current;
		this.pageSize = pageSize;
	}

	private int current;
	private int pages;
	private int total;
	private int pageSize = 10;

	public int getCurrent() {
		return current;
	}

	public void setCurrent(int current) {
		this.current = current;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;

		this.pages = (int) Math.ceil(Float.valueOf(total) / this.pageSize);
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
}
